﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Update.aspx.cs"
    Inherits="Wicresoft.RDW.LocationDocument.Update" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .divForm
        {
            width: 480px;
            margin: 0 auto;
        }
        #ll li label
        {
            width: 120px !important;
            float: left !important;
        }
    </style>
    <script language="javascript" type="text/javascript">
        $(function () {
            $("#<%=btnSubmit.ClientID %>").click(checkAllTextValid);
            $("#<%=btnCancelClose.ClientID %>").click(checkAllTextValid);
        });
   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:PlaceHolder ID="phMain" runat="server">
        <div class="main_title">
            <h2>
                <%=Resources.ManageResource.LocationDocument_Manage%></h2>
        </div>
        <div class="line_gray">
        </div>
        <br />
        <div class="divForm">
            <div>
                <label>
                    <%=Resources.ManageResource.LocationDocument_Location%></label>
                <asp:DropDownList ID="ddlLocation" runat="server" Width="255px">
                </asp:DropDownList>
            </div>
            <br />
            <div>
                <label>
                    <%=Resources.ManageResource.LocationDocument_UploadDocument%></label>
                &nbsp;<asp:FileUpload ID="DocumentFileUpload" runat="server" Width="255px" />
            </div>
            <br />
            <div>
                <label>
                    <%=Resources.ManageResource.LocationDocument_NameCN%></label>
                <asp:TextBox ID="txtNameCN" runat="server" MaxLength="200" Width="250px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvtxtNameCN" runat="server" ErrorMessage="*" Display="Dynamic"
                    ForeColor="Red" ControlToValidate="txtNameCN"></asp:RequiredFieldValidator>
            </div>
            <br />
            <div>
                <label>
                    <%=Resources.ManageResource.LocationDocument_NameEN%></label>
                <asp:TextBox ID="txtNameEN" runat="server" MaxLength="200" Width="250px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvtxtNameEN" runat="server" ErrorMessage="*" Display="Dynamic"
                    ForeColor="Red" ControlToValidate="txtNameEN"></asp:RequiredFieldValidator>
            </div>
            <br />
            <div class="sqbtnPane">
                <p class="sqbtn">
                    <asp:LinkButton ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" /></p>
                <p class="sqbtn">
                    <asp:LinkButton ID="btnCancelClose" runat="server" OnClick="btnCancel_Click" CausesValidation="false" /></p>
            </div>
            <asp:Label ID="lblUploadError" runat="server" ForeColor="Red"></asp:Label>
        </div>
    </asp:PlaceHolder>
</asp:Content>
